function OrgaInfoVOJs(){
   this.id
   ; this.orgaSno
   ; this.orgaName
   ; this.orgaCode
   ; this.remark
   ; this.orgaState

}

function OrgaInfoVOtoArray_fun(ulvo,edit){
            var querydata=new Array();
            var items = new Array();
            var ul=new Array();
            var ulo="";
            var le="";
            var d="",t;
            var arraytag="0";//isArray
            if(ulvo!=null){
              if(ulvo.length==undefined){
                 ul[0]=ulvo;
                 arraytag="1";
                 le=1;
              }else{
                 ul=ulvo;
                 le=ul.length;
              }        
              if(edit==false){
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        
                        items[2] = ulo["ns:orgaSno"];//
                        items[3] = ulo["ns:orgaName"];//
                        items[4] = ulo["ns:orgaCode"];//
                        items[5] = ulo["ns:remark"];//
                        items[6] = ulo["ns:orgaState"];//
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  }else{//edit==true
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        
                        items[2] = ulo["ns:orgaSno"];//
                        items[3] = ulo["ns:orgaName"];//
                        items[4] = ulo["ns:orgaCode"];//
                        items[5] = ulo["ns:remark"];//
                        items[6] = ulo["ns:orgaState"];//
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  } 
            }//!=null                     
            return querydata;
}
/* function PeopleVOtoArray_fun(ul,edit){
        var querydata=new Array();
        if(null!=ul){      
                     for(var i = 0; i < ul.length; i++){		
                      var items = new Array();
                      var ulo=ul[i];
                      if(edit==true){
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        items[2] = ulo["ns:peopleName"];//
                        items[3] = ulo["ns:peoplePassword"];//
                        items[4] = ulo["ns:remark"];//
                        items[5] = ulo["ns:peopleStatus"];//
                        var d=dojo.date.locale.parse(new String(ulo["ns:birthDay"]),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });
                        items[6] = d;//
                        items[7] = d;
                        items[8] = ulo["ns:sex"];//
                        items[9] = ulo["ns:birthPlace"];//
                        items[10] = ulo["ns:address"];//
                        items[11] = ulo["ns:tel"];//
                        items[12] = ulo["ns:engageMode"];//
                        var t=dojo.date.locale.parse(new String(ulo["ns:engageDate"]),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });
                        items[13] = t;//
                        items[14] = t;//
                        items[15] = ulo["ns:grade"];//
                      }else{
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        items[2] = ulo["ns:peopleName"];//
                        items[3] = ulo["ns:peoplePassword"];//
                        items[4] = ulo["ns:remark"];//
                        items[5] = ulo["ns:peopleStatus"];//
                        items[6] = ulo["ns:birthDay"];//
                        items[7] = ulo["ns:sex"];//
                        items[8] = ulo["ns:birthPlace"];//
                        items[9] = ulo["ns:address"];//
                        items[10] = ulo["ns:tel"];//
                        items[11] = ulo["ns:engageMode"];//
                        items[12] = ulo["ns:engageDate"];//
                        items[13] = ulo["ns:grade"];//
                      
                      }querydata[i]=items;
                    }
                 }
        return querydata;}
                      
*/
